From 7e8ca479ac3ae90985256822ba5e3043c0393018 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sat, 3 Aug 2002 12:44:18 +0000 Subject: [PATCH] (forward_to_next_line_start): Fix a condition that lead to a newline being skipped. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 687c0eb9440..783a1b9423f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3876,7 +3876,7 @@ forward_to_next_line_start (it, skipped_p) /* If we didn't find a newline near enough, see if we can use a short-cut. */ - if (n == MAX_NEWLINE_DISTANCE) + if (!newline_found_p) { int start = IT_CHARPOS (*it); int limit = find_next_newline_no_quit (start, 1); -- 2.30.2